<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/18
  Time: 8:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
pageContext.setAttribute("user","Pageuser");
    pageContext.setAttribute("user","Puser",pageContext.PAGE_SCOPE);
session.setAttribute("user","suser");
application.setAttribute("user","auser");
pageContext.setAttribute("user","ruser",pageContext.REQUEST_SCOPE);
%>
<%
String str1=(String) pageContext.getAttribute("user",pageContext.REQUEST_SCOPE);
%>
<%=str1
%>
<%String str2=(String) pageContext.findAttribute("user");%>
<%=str2%>
</body>
</html>
